FrameLib  2.0
DSP processing with frames of arbitrary timing and length
FrameLib_LocalAllocator::Storage Class Reference

named storage local to a specific context. More...

#include <FrameLib_Memory.h>

Classes

class  Access
 an RAII utility for safely accessing a Storage object. More...
 

Public Member Functions

const char * getName () const
 

Protected Member Functions

FrameType getType () const
 
double * getVector () const
 
unsigned long getVectorSize () const
 
unsigned long getTaggedSize () const
 
SerialgetTagged () const
 
void resize (bool tagged, size_t size)
 
 Storage (const char *name, FrameLib_LocalAllocator *allocator)
 
 ~Storage ()
 
 Storage (const Storage &)=delete
 
Storageoperator= (const Storage &)=delete
 
void increment ()
 
unsigned long decrement ()
 

Friends

class FrameLib_LocalAllocator
 

Detailed Description

named storage local to a specific context.

Constructor & Destructor Documentation

◆ Storage() [1/2]

FrameLib_LocalAllocator::Storage::Storage ( const char *  name,
FrameLib_LocalAllocator allocator 
)
protected

◆ ~Storage()

FrameLib_LocalAllocator::Storage::~Storage ( )
protected

◆ Storage() [2/2]

FrameLib_LocalAllocator::Storage::Storage ( const Storage )
protecteddelete

Member Function Documentation

◆ decrement()

unsigned long FrameLib_LocalAllocator::Storage::decrement ( )
inlineprotected

◆ getName()

const char* FrameLib_LocalAllocator::Storage::getName ( ) const
inline

◆ getTagged()

Serial* FrameLib_LocalAllocator::Storage::getTagged ( ) const
inlineprotected

◆ getTaggedSize()

unsigned long FrameLib_LocalAllocator::Storage::getTaggedSize ( ) const
inlineprotected

◆ getType()

FrameType FrameLib_LocalAllocator::Storage::getType ( ) const
inlineprotected

◆ getVector()

double* FrameLib_LocalAllocator::Storage::getVector ( ) const
inlineprotected

◆ getVectorSize()

unsigned long FrameLib_LocalAllocator::Storage::getVectorSize ( ) const
inlineprotected

◆ increment()

void FrameLib_LocalAllocator::Storage::increment ( )
inlineprotected

◆ operator=()

Storage& FrameLib_LocalAllocator::Storage::operator= ( const Storage )
protecteddelete

◆ resize()

void FrameLib_LocalAllocator::Storage::resize ( bool  tagged,
size_t  size 
)
protected

Friends And Related Function Documentation

◆ FrameLib_LocalAllocator

friend class FrameLib_LocalAllocator
friend

The documentation for this class was generated from the following files: